<template>
  <div>测试组件{{ count }}</div>
  <button @click="count--">-1</button>
  <button @click="changeName('李四')">改变父组件名字</button>
</template>

<script setup>
const [count] = defineModel()

const props = defineProps(['changeName'])

const showToast = (payload) => {
  console.log(payload);
  // showToast(payload)
}

defineExpose({ showToast })
</script>

<style scoped lang="less"></style>
